package com.zfast.spring5.Integration;

import com.zfast.spring5.model.User;
import org.springframework.integration.annotation.MessagingGateway;
import org.springframework.stereotype.Component;

/**
 * 入口网关
 * @author zgn
 * @Description: RegisterMessageGateway
 * @date 2022/3/19
 */
@Component
@MessagingGateway(defaultRequestChannel = "registerChannel")
public interface RegisterMessageGateway {
    /**
     * 注册通知流程
     *
     * @param user 用户信息
     */
    void registerMessageFlow(User user);
}